// use std::usize;

fn main() {
    println!("i32::MAX is {}", i32::MAX);
    println!("i32::MIN is {}", i32::MIN);
    println!("u32::MAX is {}", u32::MAX);
    println!("u32::MIN is {}", u32::MIN);

    println!("u64::MAX is {}", u64::MAX);
    println!("u64::MIN is {}", u64::MIN);

    println!("u128::MAX is {}", u128::MAX);
    println!("u128::MIN is {}", u128::MIN);

    print!("左闭右开：(1..5):");
    for i in 1..5 {
        print!("{} ", i)
    }
    println!();
    print!("全部空间：(1..=5).rev:");
    for i in (1..=5).rev() {
        print!("{} ", i)
    }
    println!();
    let sum: i32 = (1..=5).sum();
    println!("(1..=5).sum:{}", sum);
}
